package com.yuzhi.common.enums;

import com.yuzhi.common.util.StringUtils;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 前端图层大类
 * @Date: 2025-07-11
 */
@Getter
@AllArgsConstructor
public enum DeviceCategoryEnum {

    /**
     * 监测设备
     */
    MONITOR("1"),


    /**
     *  排水设备
     */
    DRAINAGE("2");

    private final String type;

    public static DeviceCategoryEnum find(String databaseProductName) {
        if (StringUtils.isBlank(databaseProductName)) {
            return null;
        }
        for (DeviceCategoryEnum type : values()) {
            if (type.getType().equals(databaseProductName)) {
                return type;
            }
        }
        return null;
    }
}
